package com.niuwa.p2p.dao.business;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.business.CustClaim;
import com.niuwa.p2p.vo.business.CustClaimVo;
import com.niuwa.p2p.vo.front.account.TransferDetailVo;

@MyBatisDao
public interface CustClaimDao {
    int deleteByPrimaryKey(String creditNo);

    int insert(CustClaim record);

    int insertSelective(CustClaim record);
    
    /**
     * 根据产品编号查询所属债权信息
     * @param prodCode
     * @return
     */
    List<CustClaim> selectCustClaimByProdCode(String prodCode);
    

    /**
     * 根据债权编号查询所属债权信息
     * @param creditNo
     * @return
     */
    CustClaim selectCustClaimByCreditNo(String creditNo);
    /**
     * 根据投资记录编号查询所属债权信息
     * @param creditNo
     * @return
     */
    CustClaim selectCustClaimByRecordNo(String recordNo);
    
    List<CustClaimVo> selectCustClaimInfoByRecordNo(String recordNo);

    int updateByPrimaryKeySelectiveByVersion(CustClaim record);
    
    List<CustClaim> selectClaimListByCustNameListPage(Map<String, Object> param);

    /**
     * 债权详情
     * @param projectNo
     * @return
     */
	List<TransferDetailVo> selectTransferListByProNo(Map<String, Object> mapParam);

	Map<String, Object> selectInvestByProNo(Map<String, Object> mapParam);

	Map<String, Object> selectClaimDetailByCustIdCreditNo(Map<String, Object> param);

	Map<String, Object> selectCustClaimDetailByParam(Map<String, Object> param);
}